<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>企业列表 - 社交网络</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome 图标 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    
    <style>
        :root {
            --primary: #2563eb;
            --primary-light: #60a5fa;
            --secondary: #7c3aed;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --text-tertiary: #94a3b8;
            --bg-light: #f8fafc;
            --bg-white: #ffffff;
            --bg-gray: #f1f5f9;
            --border-light: #e2e8f0;
            --radius: 12px;
            --radius-sm: 8px;
            --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: var(--bg-light);
            color: var(--text-primary);
            padding-top: 56px;
            padding-bottom: 60px;
        }
        
        /* 顶部导航 */
        .top-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 56px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            z-index: 1000;
            border-bottom: 1px solid var(--border-light);
        }
        
        .nav-title {
            font-size: 1.1rem;
            font-weight: 600;
        }
        
        .nav-action {
            color: var(--text-secondary);
            background: none;
            border: none;
            font-size: 1.2rem;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .nav-action:hover {
            background-color: var(--bg-light);
        }
        
        .nav-action.primary {
            color: var(--primary);
        }
        
        /* 搜索栏 */
        .search-container {
            padding: 12px 16px;
            background-color: var(--bg-white);
        }
        
        .search-box {
            position: relative;
        }
        
        .search-input {
            width: 100%;
            padding: 10px 16px 10px 40px;
            border-radius: 24px;
            border: 1px solid var(--border-light);
            background-color: var(--bg-gray);
            font-size: 0.9rem;
            outline: none;
        }
        
        .search-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-tertiary);
        }
        
        /* 筛选标签 */
        .filter-tabs {
            display: flex;
            overflow-x: auto;
            padding: 8px 16px;
            background-color: var(--bg-white);
            border-bottom: 1px solid var(--border-light);
            scrollbar-width: none;
        }
        
        .filter-tabs::-webkit-scrollbar {
            display: none;
        }
        
        .filter-tab {
            padding: 6px 14px;
            margin-right: 8px;
            background-color: var(--bg-gray);
            border-radius: 16px;
            font-size: 0.85rem;
            white-space: nowrap;
            border: none;
            color: var(--text-secondary);
        }
        
        .filter-tab.active {
            background-color: var(--primary);
            color: white;
        }
        
        /* 企业列表容器 */
        .enterprises-container {
            padding: 12px 16px;
        }
        
        /* 企业卡片 - 通用样式 */
        .enterprise-card {
            background-color: var(--bg-white);
            border-radius: var(--radius);
            overflow: hidden;
            margin-bottom: 12px;
            box-shadow: var(--shadow);
            text-decoration: none;
            color: var(--text-primary);
            transition: transform 0.2s ease;
        }
        
        .enterprise-card:hover {
            transform: translateY(-2px);
        }
        
        .enterprise-header {
            padding: 12px 16px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .enterprise-logo {
            width: 50px;
            height: 50px;
            border-radius: 8px;
            background-color: var(--bg-gray);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-tertiary);
            font-size: 1.5rem;
        }
        
        .enterprise-logo img {
            width: 100%;
            height: 100%;
            border-radius: 8px;
            object-fit: cover;
        }
        
        .enterprise-info {
            flex: 1;
        }
        
        .enterprise-name {
            font-weight: 600;
            font-size: 1rem;
            margin-bottom: 2px;
        }
        
        .enterprise-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            font-size: 0.8rem;
            color: var(--text-secondary);
        }
        
        .enterprise-industry {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .enterprise-location {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .enterprise-follow {
            color: var(--primary);
            font-size: 0.85rem;
            font-weight: 500;
            background: none;
            border: 1px solid var(--primary);
            border-radius: 14px;
            padding: 4px 10px;
            flex-shrink: 0;
        }
        
        .enterprise-follow.followed {
            color: var(--text-secondary);
            border-color: var(--border-light);
        }
        
        /* 企业卡片 - 无图片样式 */
        .enterprise-no-image .enterprise-content {
            padding: 0 16px 12px;
        }
        
        .enterprise-description {
            font-size: 0.85rem;
            color: var(--text-secondary);
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        /* 企业卡片 - 单图片样式 */
        .enterprise-single-image .enterprise-image {
            width: 100%;
            height: 180px;
            position: relative;
        }
        
        .enterprise-single-image .enterprise-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* 企业卡片 - 多图片样式 */
        .enterprise-multi-image .enterprise-images {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 4px;
            padding: 0 16px 12px;
        }
        
        .enterprise-multi-image .enterprise-image {
            aspect-ratio: 1;
            position: relative;
        }
        
        .enterprise-multi-image .enterprise-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: var(--radius-sm);
        }
        
        /* 企业数据统计 */
        .enterprise-stats {
            display: flex;
            justify-content: space-between;
            padding: 10px 16px;
            border-top: 1px solid var(--border-light);
            font-size: 0.8rem;
            color: var(--text-tertiary);
        }
        
        .enterprise-stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex: 1;
        }
        
        .stat-value {
            font-weight: 600;
            color: var(--text-primary);
            font-size: 0.9rem;
            margin-bottom: 2px;
        }
        
        .stat-label {
            font-size: 0.75rem;
        }
        
        /* 加载更多 */
        .load-more {
            padding: 16px 0;
            text-align: center;
        }
        
        .load-more-btn {
            background-color: var(--bg-white);
            border: 1px solid var(--border-light);
            color: var(--text-secondary);
            padding: 8px 24px;
            border-radius: 20px;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0 auto;
        }
        
        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-around;
            align-items: center;
            border-top: 1px solid var(--border-light);
            z-index: 1000;
        }
        
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            font-size: 0.7rem;
            gap: 4px;
            flex: 1;
            height: 100%;
            text-decoration: none;
        }
        
        .nav-item.active {
            color: var(--primary);
        }
        
        .nav-icon {
            font-size: 1.2rem;
        }
        
        /* 提示消息 */
        .toast {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 16px;
            border-radius: 4px;
            z-index: 9999;
            font-size: 0.85rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .toast.show {
            opacity: 1;
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="top-nav">
        <button class="nav-action" id="backBtn">
            <i class="fas fa-arrow-left"></i>
        </button>
        <div class="nav-title">企业列表</div>
        <button class="nav-action primary" id="filterBtn">
            <i class="fas fa-sliders"></i>
        </button>
    </div>
    
    <!-- 搜索栏 -->
    <div class="search-container">
        <div class="search-box">
            <i class="fas fa-search search-icon"></i>
            <input type="text" class="search-input" placeholder="搜索企业...">
        </div>
    </div>
    
    <!-- 筛选标签 -->
    <div class="filter-tabs">
        <button class="filter-tab active">全部企业</button>
        <button class="filter-tab">科技</button>
        <button class="filter-tab">金融</button>
        <button class="filter-tab">教育</button>
        <button class="filter-tab">医疗</button>
        <button class="filter-tab">零售</button>
        <button class="filter-tab">服务</button>
    </div>
    
    <!-- 企业列表容器 -->
    <div class="enterprises-container">
        <!-- 企业卡片 - 多图片样式 -->
        <a href="#" class="enterprise-card enterprise-multi-image">
            <div class="enterprise-header">
                <div class="enterprise-logo">
                    <img src="https://picsum.photos/id/28/200/200" alt="科技未来公司">
                </div>
                <div class="enterprise-info">
                    <div class="enterprise-name">科技未来有限公司</div>
                    <div class="enterprise-meta">
                        <div class="enterprise-industry">
                            <i class="fas fa-briefcase"></i>
                            <span>人工智能</span>
                        </div>
                        <div class="enterprise-location">
                            <i class="fas fa-map-marker-alt"></i>
                            <span>北京市海淀区</span>
                        </div>
                    </div>
                </div>
                <button class="enterprise-follow">关注</button>
            </div>
            <div class="enterprise-description">
                专注于人工智能和机器学习领域的创新企业，提供智能解决方案和技术服务。
            </div>
            <div class="enterprise-images">
                <div class="enterprise-image">
                    <img src="https://picsum.photos/id/180/300/300" alt="公司环境">
                </div>
                <div class="enterprise-image">
                    <img src="https://picsum.photos/id/48/300/300" alt="产品展示">
                </div>
                <div class="enterprise-image">
                    <img src="https://picsum.photos/id/239/300/300" alt="团队活动">
                </div>
            </div>
            <div class="enterprise-stats">
                <div class="enterprise-stat-item">
                    <div class="stat-value">1.2k</div>
                    <div class="stat-label">关注者</div>
                </div>
                <div class="enterprise-stat-item">
                    <div class="stat-value">56</div>
                    <div class="stat-label">动态</div>
                </div>
                <div class="enterprise-stat-item">
                    <div class="stat-value">248</div>
                    <div class="stat-label">产品</div>
                </div>
            </div>
        </a>
        
        <!-- 企业卡片 - 单图片样式 -->
        <a href="#" class="enterprise-card enterprise-single-image">
            <div class="enterprise-header">
                <div class="enterprise-logo">
                    <img src="https://picsum.photos/id/20/200/200" alt="绿源生态">
                </div>
                <div class="enterprise-info">
                    <div class="enterprise-name">绿源生态科技</div>
                    <div class="enterprise-meta">
                        <div class="enterprise-industry">
                            <i class="fas fa-briefcase"></i>
                            <span>环保科技</span>
                        </div>
                        <div class="enterprise-location">
                            <i class="fas fa-map-marker-alt"></i>
                            <span>上海市浦东新区</span>
                        </div>
                    </div>
                </div>
                <button class="enterprise-follow followed">已关注</button>
            </div>
            <div class="enterprise-image">
                <img src="https://picsum.photos/id/119/600/400" alt="绿源生态办公环境">
            </div>
            <div class="enterprise-stats">
                <div class="enterprise-stat-item">
                    <div class="stat-value">856</div>
                    <div class="stat-label">关注者</div>
                </div>
                <div class="enterprise-stat-item">
                    <div class="stat-value">32</div>
                    <div class="stat-label">动态</div>
                </div>
                <div class="enterprise-stat-item">
                    <div class="stat-value">42</div>
                    <div class="stat-label">产品</div>
                </div>
            </div>
        </a>
        
        <!-- 企业卡片 - 无图片样式 -->
        <a href="#" class="enterprise-card enterprise-no-image">
            <div class="enterprise-header">
                <div class="enterprise-logo">
                    <i class="fas fa-university"></i>
                </div>
                <div class="enterprise-info">
                    <div class="enterprise-name">诚信金融服务</div>
                    <div class="enterprise-meta">
                        <div class="enterprise-industry">
                            <i class="fas fa-briefcase"></i>
                            <span>金融服务</span>
                        </div>
                        <div class="enterprise-location">
                            <i class="fas fa-map-marker-alt"></i>
                            <span>广州市天河区</span>
                        </div>
                    </div>
                </div>
                <button class="enterprise-follow">关注</button>
            </div>
            <div class="enterprise-content">
                <div class="enterprise-description">
                    提供专业的金融咨询和投资管理服务，致力于为客户创造稳定的投资回报和财务安全。
                </div>
            </div>
            <div class="enterprise-stats">
                <div class="enterprise-stat-item">
                    <div class="stat-value">2.4k</div>
                    <div class="stat-label">关注者</div>
                </div>
                <div class="enterprise-stat-item">
                    <div class="stat-value">78</div>
                    <div class="stat-label">动态</div>
                </div>
                <div class="enterprise-stat-item">
                    <div class="stat-value">16</div>
                    <div class="stat-label">服务</div>
                </div>
            </div>
        </a>
        
        <!-- 企业卡片 - 多图片样式 -->
        <a href="#" class="enterprise-card enterprise-multi-image">
            <div class="enterprise-header">
                <div class="enterprise-logo">
                    <img src="https://picsum.photos/id/96/200/200" alt="智慧教育">
                </div>
                <div class="enterprise-info">
                    <div class="enterprise-name">智慧教育集团</div>
                    <div class="enterprise-meta">
                        <div class="enterprise-industry">
                            <i class="fas fa-briefcase"></i>
                            <span>教育培训</span>
                        </div>
                        <div class="enterprise-location">
                            <i class="fas fa-map-marker-alt"></i>
                            <span>深圳市南山区</span>
                        </div>
                    </div>
                </div>
                <button class="enterprise-follow">关注</button>
            </div>
            <div class="enterprise-description">
                结合科技与教育的创新企业，提供在线课程、教育科技产品及解决方案。
            </div>
            <div class="enterprise-images">
                <div class="enterprise-image">
                    <img src="https://picsum.photos/id/20/300/300" alt="教学场景">
                </div>
                <div class="enterprise-image">
                    <img src="https://picsum.photos/id/42/300/300" alt="办公环境">
                </div>
                <div class="enterprise-image">
                    <img src="https://picsum.photos/id/60/300/300" alt="活动照片">
                </div>
            </div>
            <div class="enterprise-stats">
                <div class="enterprise-stat-item">
                    <div class="stat-value">3.1k</div>
                    <div class="stat-label">关注者</div>
                </div>
                <div class="enterprise-stat-item">
                    <div class="stat-value">124</div>
                    <div class="stat-label">动态</div>
                </div>
                <div class="enterprise-stat-item">
                    <div class="stat-value">68</div>
                    <div class="stat-label">课程</div>
                </div>
            </div>
        </a>
        
        <!-- 企业卡片 - 无图片样式 -->
        <a href="#" class="enterprise-card enterprise-no-image">
            <div class="enterprise-header">
                <div class="enterprise-logo">
                    <i class="fas fa-hospital"></i>
                </div>
                <div class="enterprise-info">
                    <div class="enterprise-name">康泰医疗集团</div>
                    <div class="enterprise-meta">
                        <div class="enterprise-industry">
                            <i class="fas fa-briefcase"></i>
                            <span>医疗健康</span>
                        </div>
                        <div class="enterprise-location">
                            <i class="fas fa-map-marker-alt"></i>
                            <span>成都市锦江区</span>
                        </div>
                    </div>
                </div>
                <button class="enterprise-follow followed">已关注</button>
            </div>
            <div class="enterprise-content">
                <div class="enterprise-description">
                    专注于提供高质量医疗服务和健康管理解决方案，拥有多家连锁医疗机构。
                </div>
            </div>
            <div class="enterprise-stats">
                <div class="enterprise-stat-item">
                    <div class="stat-value">5.8k</div>
                    <div class="stat-label">关注者</div>
                </div>
                <div class="enterprise-stat-item">
                    <div class="stat-value">96</div>
                    <div class="stat-label">动态</div>
                </div>
                <div class="enterprise-stat-item">
                    <div class="stat-value">32</div>
                    <div class="stat-label">服务</div>
                </div>
            </div>
        </a>
    </div>
    
    <!-- 加载更多 -->
    <div class="load-more">
        <button class="load-more-btn" id="loadMoreBtn">
            <i class="fas fa-spinner fa-spin" style="display: none;"></i>
            <span>加载更多企业</span>
        </button>
    </div>
    
    <!-- 底部导航 -->
    <div class="bottom-nav">
        <a href="#" class="nav-item">
            <i class="fas fa-home nav-icon"></i>
            <span>首页</span>
        </a>
        <a href="#" class="nav-item active">
            <i class="fas fa-building nav-icon"></i>
            <span>企业</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-plus-circle nav-icon"></i>
            <span>发布</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-bell nav-icon"></i>
            <span>通知</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-user nav-icon"></i>
            <span>我的</span>
        </a>
    </div>
    
    <!-- 提示消息元素 -->
    <div class="toast" id="toast"></div>
    
    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // DOM元素
        const filterTabs = document.querySelectorAll('.filter-tab');
        const followBtns = document.querySelectorAll('.enterprise-follow');
        const loadMoreBtn = document.getElementById('loadMoreBtn');
        const backBtn = document.getElementById('backBtn');
        const filterBtn = document.getElementById('filterBtn');
        
        // 筛选标签切换
        filterTabs.forEach(tab => {
            tab.addEventListener('click', function() {
                filterTabs.forEach(t => t.classList.remove('active'));
                this.classList.add('active');
                showToast(`已筛选：${this.textContent}`);
            });
        });
        
        // 关注/取消关注按钮
        followBtns.forEach(btn => {
            btn.addEventListener('click', function(e) {
                e.preventDefault();
                e.stopPropagation();
                
                if (this.classList.contains('followed')) {
                    this.classList.remove('followed');
                    this.textContent = '关注';
                    showToast('已取消关注');
                } else {
                    this.classList.add('followed');
                    this.textContent = '已关注';
                    showToast('关注成功');
                }
            });
        });
        
        // 加载更多功能
        loadMoreBtn.addEventListener('click', function() {
            const spinner = this.querySelector('.fa-spinner');
            const text = this.querySelector('span');
            const originalText = text.textContent;
            
            // 显示加载状态
            spinner.style.display = 'inline-block';
            text.textContent = '加载中...';
            this.disabled = true;
            
            // 模拟加载延迟
            setTimeout(() => {
                spinner.style.display = 'none';
                text.textContent = originalText;
                this.disabled = false;
                showToast('已加载更多企业');
            }, 1500);
        });
        
        // 企业卡片点击事件
        document.querySelectorAll('.enterprise-card').forEach(card => {
            card.addEventListener('click', function() {
                const enterpriseName = this.querySelector('.enterprise-name').textContent;
                showToast(`查看${enterpriseName}详情`);
            });
        });
        
        // 顶部按钮事件
        backBtn.addEventListener('click', function() {
            history.back();
        });
        
        filterBtn.addEventListener('click', function() {
            showToast('打开筛选面板');
        });
        
        // 底部导航点击
        document.querySelectorAll('.nav-item').forEach(item => {
            item.addEventListener('click', function(e) {
                e.preventDefault();
                document.querySelectorAll('.nav-item').forEach(i => i.classList.remove('active'));
                this.classList.add('active');
                const title = this.querySelector('span').textContent;
                showToast(`已切换到${title}`);
            });
        });
        
        // 提示消息功能
        function showToast(message) {
            const toast = document.getElementById('toast');
            toast.textContent = message;
            toast.classList.add('show');
            
            setTimeout(() => {
                toast.classList.remove('show');
            }, 2000);
        }
    </script>
</body>
</html>

